package com.songxh.infrastructure.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songxh.application.dto.details.TagResultDTO;
import com.songxh.application.dto.home.HotTagsDTO;
import com.songxh.infrastructure.db.pojo.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songxh
 * @create 2022-12-19-15:50
 */
public interface TagMapper extends BaseMapper<Tag> {

    /**
     * 查询最热标签
     * @param level  个数
     * @return
     */
    List<HotTagsDTO> getHotTagIds(@Param("level")Long level);

    /**
     * 获取所有的标签
     * @return
     */
    List<TagResultDTO> getTags();
}
